package jumtsmon;

public class roaming {
    public static String connectedOp = "Not Avaible";
           static String operatori[][] = {
            {"Tim", "22201"},
            {"Vodafone", "22210"},
            {"Wind", "22288"},
            {"H3G", "22299"}
    };
    

    public static String getConnectedOp() {
        String tmp = umtsReader.modemOutput;
            for ( int i = 0; i < 4 ; i++ ) {
                for ( int j=0 ; j < 2; j++) {
                    if (tmp.contains(operatori[i][j])) {
                        connectedOp = operatori[i][0];
                    }
                }
            }
        System.out.println("------ > OPERATORE CONNESSO " + connectedOp);
        GUI.OperatoreLabel.setText(connectedOp);
        return connectedOp;
    }
}